package com.manycomp;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:周次煜
 * Date: 2024-03-08
 * Time：8:29
 */
public class Student1 {
    public String name;
    public int age;

    public Student1(String name, int age) {
        this.name = name;
        this.age = age;
    }

}

class Test2 {
    public static void main(String[] args) {
        Student1 s1=new Student1("wangdalao",18);
        Student1 s2=new Student1("youdaxia",20);
        NameSort n=new NameSort();
        int ret=n.compare(s1,s2);

        System.out.println(ret);
    }
}
